package com.zimmur.app.mocolink.dao;

import com.zimmur.app.mocolink.domain.model.BackgroundImage;
import com.zimmur.app.mocolink.domain.model.BackgroundImageExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BackgroundImageMapper {
    int countByExample(BackgroundImageExample example);

    int deleteByExample(BackgroundImageExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BackgroundImage record);

    int insertSelective(BackgroundImage record);

    List<BackgroundImage> selectByExample(BackgroundImageExample example);

    BackgroundImage selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BackgroundImage record, @Param("example") BackgroundImageExample example);

    int updateByExample(@Param("record") BackgroundImage record, @Param("example") BackgroundImageExample example);

    int updateByPrimaryKeySelective(BackgroundImage record);

    int updateByPrimaryKey(BackgroundImage record);
    /**
     * 按显示类型查询
     *@Description
     *@param type
     *@return 
     *@author zcx
     *@Time 2017年10月12日 下午2:35:48
     */
    List<BackgroundImage> selectByType(Integer type);
}